import { EventEmitterModule } from '@nestjs/event-emitter';

export const RegisterEmitter = EventEmitterModule.forRoot()

export class OrderCreatedEvent {
    orderId: number;
    [x: string]: any;
    constructor(props: { orderId: number, payload: any }) {
        this.orderId = props.orderId
        this.payload = props.payload
    }
}